package com.changli01.string.exer1;

public class exer1 {
    public String str = "good";
    public char ch [] = new char[] {'t','e','s','t'};

    public void change (String str,char ch []) {
        this.str = "test ok";
        ch[0] = 'b';
    }
    public static void main(String[] args) {
        exer1 ex = new exer1();
        ex.change(ex.str, ex.ch);
        System.out.println(ex.str); // good
        System.out.println(ex.ch);  // best
    }
}
